<body>
<div class="ui-form w600">
<form id="form" action="{url('channel/languageadd')}">
<table>
    <tr><th>站点名称:</th><td><input nullmsg="站点名称没有填写" errormsg="只能输入汉字字母或数字" class="input" datatype="s" type="text" name="name" value="" /></td></tr>
    <tr><th>捆绑域名:</th><td class="fn-f14 gray">http://<input class="input w200" datatype="url"  ignore="ignore" type="text" name="url" value="" /></td></tr>
    <tr><th>默认站点:</th><td>
    默认: <input class="radio" type="radio" name="types" value="0">
    可选: <input class="radio" type="radio" name="types" value="1" checked="checked">
    <span class="vform">只能有一个默认站点</span>
    </td>
    </tr>
    <tr>
        <th>首页模版:</th><td><input nullmsg="首页模版没有填写" errormsg="只能输入字母或数字" class="input" datatype="*" name="tpl_index" id="tpl_index" type="text" value="" readonly="readonly" />
        <input url="{url('themes/selecttpl',array(id=>'tpl_index'))}" title="模板选择" value="模板选择" type="button" class="button win" />
        </td>
    </tr>  
</table>
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','Dialog','Form',function(){ 
    $('#form').cpFormPage();
    $(".win").click(function(){
        $(this).cpWindows();
    });
})
</script>
</body>